package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"host/api/internal/config"
	"host/hostrpc/hostrpcclient"
)

type ServiceContext struct {
	Config  config.Config
	HostRpc hostrpcclient.Hostrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		HostRpc: hostrpcclient.NewHostrpc(zrpc.MustNewClient(c.HostRpc)),
	}
}
